package com.example.lvsuo.controller.cxg;

import com.example.lvsuo.entity.HrEmp;
import com.example.lvsuo.modal.Result;
import com.example.lvsuo.service.IHrEmpService;
import com.example.lvsuo.service.cxg.PractitionersCwStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("PractitionersCwStatistics")
public class PractitionersCwStatisticsController {

    @Autowired
    PractitionersCwStatisticsService practitionersCwStatisticsService;
    @Autowired
    IHrEmpService hrEmpService;

    /**
     * 查询执业人员信息
     * @return
     */
    @GetMapping("/hremps")
    public Result queryhrEmpService(){
        List<HrEmp> list = hrEmpService.queryhrEmpService();
//        System.out.println("为啥自带方法出不来:"+list);
        return Result.back("ok","20000",list);
    }




}
